#!/bin/bash
make clean
make -j2
if [ "$?" -ne 0 ]; then echo "Make failed"; exit 1; fi
sudo losetup /dev/loop1 /home/salil/Images/fdImage
sudo mount /dev/loop1 /home/salil/Images/fdImageDir
sudo cp salil64 /home/salil/Images/fdImageDir
sudo umount /home/salil/Images/fdImageDir
sudo losetup --detach /dev/loop1

qemu-system-x86_64 -fda ~/Images/fdImage -boot a -s -serial tcp::4444,server,nowait
